%
%  Description:
%	LaTeX style file to produce output that conforms to the standards
%	suitable for the UofL Teaching Assistance works
%
%  Environment:
%	Should be invoked as an option to the article style, as:
%	\usepackage{units}
%
%  Location:
%	This file (units.sty) should be placed either in the directory
%	containing your input .tex file or in the directory tex/inputs.
%

% Definition Section

\newcommand{\unit}[1]{{\,\rm #1}}

\newcommand{\Amp} {\unit{A}}
\newcommand{\mAmp}{\unit{mA}}
\newcommand{\uAmp}{\unit{{\mu}A}}
\newcommand{\nAmp}{\unit{nA}}
%
\newcommand{\BPS} {\, \textsc{bps}}
\newcommand{\kBPS}{\, \rm k\textsc{bps}}
\newcommand{\MBPS}{\, \rm M\textsc{bps}}
%
\newcommand{\dB}{\unit{dB}}
\newcommand{\dBm}{\unit{dBm}}
%
\newcommand{\degree}{^\circ}
%
\newcommand{\division}{\unit{div}}
%
\newcommand{\dollar}{\$\,}
%
\newcommand{\Farad} {\unit{F}}
\newcommand{\mFarad}{\unit{mF}}
\newcommand{\uFarad}{\unit{{\mu}F}}
\newcommand{\nFarad}{\unit{nF}}
\newcommand{\pFarad}{\unit{pF}}
\newcommand{\fFarad}{\unit{fF}}
%
\newcommand{\Henri} {\unit{H}}
\newcommand{\mHenri}{\unit{mH}}
\newcommand{\uHenri}{\unit{{\mu}H}}
\newcommand{\nHenri}{\unit{nH}}
\newcommand{\pHenri}{\unit{pH}}
%
\newcommand{\Herz}{\unit{Hz}}
\newcommand{\kHerz}{\unit{kHz}}
\newcommand{\MHerz}{\unit{MHz}}
\newcommand{\GHerz}{\unit{GHz}}
\newcommand{\THerz}{\unit{THz}}
%
\newcommand{\Kelvin}{^\circ\negmedspace\unit{K}}
%
\newcommand{\kmeter}{\unit{km}}
\newcommand{\meter} {\unit{m}}
\newcommand{\cmeter}{\unit{cm}}
\newcommand{\mmeter}{\unit{mm}}
\newcommand{\umeter}{\unit{{\mu}m}}
\newcommand{\nmeter}{\unit{nm}}
\newcommand{\pmeter}{\unit{pm}}
%
\newcommand{\Ohm} {\unit{\Omega}}
\newcommand{\mOhm}{\unit{m\Omega}}
\newcommand{\kOhm}{\unit{k\Omega}}
\newcommand{\MOhm}{\unit{M\Omega}}
%
\newcommand{\radian} {\unit{rad}}
\newcommand{\kradian}{\unit{krad}}
%
\newcommand{\percent}{\unit{\%}}
%
\newcommand{\RPM}{\, \rm \textsc{rpm}}
%
\newcommand{\second} {\unit{s}}
\newcommand{\msecond}{\unit{ms}}
\newcommand{\usecond}{\unit{{\mu}s}}
\newcommand{\nsecond}{\unit{ns}}
\newcommand{\psecond}{\unit{ps}}
%
\newcommand{\Siemens} {\unit{S}}
\newcommand{\mSiemens}{\unit{mS}}
\newcommand{\uSiemens}{\unit{{\mu}S}}
%
\newcommand{\subRMS}{_{\rm \textsc{rms}}}
%
\newcommand{\kVolt} {\unit{kV}}
\newcommand{\Volt} {\unit{V}}
\newcommand{\mVolt}{\unit{mV}}
\newcommand{\uVolt}{\unit{{\mu}V}}
%
\newcommand{\VA} {\unit{VA}}
\newcommand{\mVA}{\unit{mVA}}
\newcommand{\kVA}{\unit{kVA}}
\newcommand{\MVA}{\unit{MVA}}
\newcommand{\GVA}{\unit{GVA}}
%
\newcommand{\VAR} {\unit{\text{VAR}}}
\newcommand{\mVAR}{\unit{m\text{VAR}}}
\newcommand{\kVAR}{\unit{k\text{VAR}}}
\newcommand{\MVAR}{\unit{M\text{VAR}}}
\newcommand{\GVAR}{\unit{G\text{VAR}}}
%
\newcommand{\Watt} {\unit{W}}
\newcommand{\mWatt}{\unit{mW}}
\newcommand{\kWatt}{\unit{kW}}
\newcommand{\MWatt}{\unit{MW}}
\newcommand{\GWatt}{\unit{GW}}
%
\newcommand{\dg}{^\circ}


